<!DOCTYPE html>
<%@ page autoFlush="true" buffer="16kb" errorPage="error/Error.jsp" contentType="text/html;charset=UTF-8"  import="com.mmp.main.util.*,com.mmp.common.util.*,com.mmp.main.entity.*" %>
<html dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%
  String dest = (String)request.getAttribute("dest");
 // Boolean excludeHead = (Boolean) request.getAttribute("excludeHead");
 // Boolean excludeInterface = (Boolean) request.getAttribute("excludeInterface");
 // Boolean excludeMenu = (Boolean) request.getAttribute("excludeMenu");
  String msg = WebUtil.getSessionMessage(request);
  String path = request.getContextPath();
  int siteId = WebUtil.getSessionUser(request).getSite().getId();
  
  String reportFlag = request.getParameter("report");
%>

<%@include file="Scripts_Styles.jsp" %>

<title>BiomedApp:: برنامج إدارة قسم الصيانة الطبية</title>
<script>
  $(function(){
	  //initPage();
	initSlideDownMenu();
	
	<%if(request.isUserInRole(Enums.SYS_ROLES.DEPARTMENT_HEAD.getRoleName())){%>
	  if($.cookie("stop_jo_notify") === undefined)
	    connectToJobOrderNotifier(<%=siteId%>);
	  if($.cookie("stop_spinv_notify") === undefined)
	    connectToSPInventoryNotifier(<%=siteId%>);
	<%}%>
	
    <%if(reportFlag != null){ %>
    	$("form").prepend('<input type="hidden" name="report" value="<%=reportFlag%>" />');
    <%}%>
  });
</script>
</head>
<body>
<%@include file="NoScript.jsp" %>
<div id="container">
  <%@include file="Header.jsp" %>
  <div id="content">
    <!-- <div id="job_order_notification_ph" style="background:red;color:white;font-weight: bold"></div> -->
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2" id="notifications_Container">
        <!-- 
          <div id="jo_notifications_holder"></div>
          <div id="spinv_notifications_holder"></div>
        -->
        </td>
      </tr>

      <tr>
        <td colspan='2'>
         <%@include file="SessionInfo.jsp" %>
        </td>
      </tr>
        
      <tr> 
        <td width="30%" valign="top" id="side_menu_container"><%@include file="Menu.jsp" %></td>
        <td valign="top" id="content_container">
        <%=msg%>
        <jsp:include page="<%=dest%>" flush="false" />
        </td>
      </tr>
    </table>
  </div>
  <%@include file="Footer.jsp" %>
</div>
</body>
</html>

